/*
 * =====================================================================================
 *
 *       Filename:  main.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/10/2022 01:06:49 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "IHummerModel.h"
#include "HummerH1Model.h"
#include "HummerH2Model.h"
int main() {
    //客户开着H1型号，出去遛弯了
    IHummerModel* ph1 = new CHummerH1Model();
    ph1->Run();
    delete ph1;
    //客户开H2型号，出去玩耍了
    IHummerModel* ph2 = new CHummerH2Model();
    ph2->Run();
    delete ph2;
    //客户开着H1型号，出去遛弯了，并且不让喇叭响
    CHummerH1Model* ph11 = new CHummerH1Model();
    ph11->SetAlarm(false);
    ph11->Run();
    delete ph11;
    return 0;
}
